package com.fjec.market.service;

import com.fjec.common.protocol.JsonResult;
import com.fjec.market.entity.InfoPersonal;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 049.个人用户表 服务类
 * </p>
 *
 * @author admin
 * @since 2020-09-24
 */
public interface IInfoPersonalService extends IService<InfoPersonal> {

    /**
     * 保存个人用户信息
     *
     * @param userId
     * @param coopId
     * @return
     */
    boolean save(Long userId, Long coopId, String nickName, String headPic);

    /**
     * 更新用户信息的busiType
     *
     * @param userId
     * @param busiType
     * @return
     */
    boolean updateBusiTypeByUserId(Long userId, Integer busiType);

    /**
     * 更新个人用户昵称和头像链接
     *
     * @param nickName
     * @param headPic
     * @return
     */
    boolean updateNickNameAndHeadPicByUserId(Long userId, String nickName, String headPic);
}
